package com.ss.sdg.methodcalling;

import org.eclipse.jdt.core.dom.TypeDeclaration;


public class Edge {

	
	private boolean isConstructorInvocation = false;

	//contains a Caller and Callee that composite CallSite
	private MethodCallNode caller;

	private MethodCallNode callee;

	String invokeNode;

	TypeDeclaration curClass;
	
	private String style;
	
	private String color="blue";
	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public TypeDeclaration getCurClass() {
		return curClass;
	}

	public void setCurClass(TypeDeclaration curClass) {
		this.curClass = curClass;
	}

	public Edge() {
		super();
	}

	public Edge(MethodCallNode caller, MethodCallNode callee,
			String invokeNode) {
		super();
		this.caller = caller;
		this.callee = callee;
		this.invokeNode = invokeNode;
	}

	public boolean isConstructorInvocation() {
		return isConstructorInvocation;
	}

	public void setConstructorInvocation(boolean isConstructorInvocation) {
		this.isConstructorInvocation = isConstructorInvocation;
	}

	public String getInvokeNode() {
		return invokeNode;
	}

	public void setInvokeNode(String invokeNode) {
		this.invokeNode = invokeNode;
	}

	public MethodCallNode getCaller() {
		return caller;
	}

	public void setCaller(MethodCallNode caller) {
		this.caller = caller;
	}

	public MethodCallNode getCallee() {
		return callee;
	}

	public void setCallee(MethodCallNode callee) {
		this.callee = callee;
	}

}
